package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchReportFormsConfigMapper;
import com.ruoyi.system.domain.DispatchReportFormsConfig;
import com.ruoyi.system.service.IDispatchReportFormsConfigService;

/**
 * 报设置Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchReportFormsConfigServiceImpl implements IDispatchReportFormsConfigService 
{
    @Autowired
    private DispatchReportFormsConfigMapper dispatchReportFormsConfigMapper;

    /**
     * 查询报设置
     * 
     * @param reportFormsConfigId 报设置主键
     * @return 报设置
     */
    @Override
    public DispatchReportFormsConfig selectDispatchReportFormsConfigByReportFormsConfigId(Long reportFormsConfigId)
    {
        return dispatchReportFormsConfigMapper.selectDispatchReportFormsConfigByReportFormsConfigId(reportFormsConfigId);
    }

    /**
     * 查询报设置列表
     * 
     * @param dispatchReportFormsConfig 报设置
     * @return 报设置
     */
    @Override
    public List<DispatchReportFormsConfig> selectDispatchReportFormsConfigList(DispatchReportFormsConfig dispatchReportFormsConfig)
    {
        return dispatchReportFormsConfigMapper.selectDispatchReportFormsConfigList(dispatchReportFormsConfig);
    }

    /**
     * 新增报设置
     * 
     * @param dispatchReportFormsConfig 报设置
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchReportFormsConfig(DispatchReportFormsConfig dispatchReportFormsConfig)
    {
        return dispatchReportFormsConfigMapper.insertDispatchReportFormsConfig(dispatchReportFormsConfig);
    }

    /**
     * 修改报设置
     * 
     * @param dispatchReportFormsConfig 报设置
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchReportFormsConfig(DispatchReportFormsConfig dispatchReportFormsConfig)
    {
        return dispatchReportFormsConfigMapper.updateDispatchReportFormsConfig(dispatchReportFormsConfig);
    }

    /**
     * 批量删除报设置
     * 
     * @param reportFormsConfigIds 需要删除的报设置主键
     * @return 结果
     */
    @Override
    public int deleteDispatchReportFormsConfigByReportFormsConfigIds(Long[] reportFormsConfigIds)
    {
        return dispatchReportFormsConfigMapper.deleteDispatchReportFormsConfigByReportFormsConfigIds(reportFormsConfigIds);
    }

    /**
     * 删除报设置信息
     * 
     * @param reportFormsConfigId 报设置主键
     * @return 结果
     */
    @Override
    public int deleteDispatchReportFormsConfigByReportFormsConfigId(Long reportFormsConfigId)
    {
        return dispatchReportFormsConfigMapper.deleteDispatchReportFormsConfigByReportFormsConfigId(reportFormsConfigId);
    }
}
